package fms_test;

public class Fuzzy_Match_Score{

	/**
	 * @param edis
	 * @return
	 */
	public static double computeFMS(DistanceSet edis){
		
		double fms;
		double divisor =(double)Math.max(edis.getSourceList().size(), edis.getTMSourceList().size());
		
		fms = 1 - ( (double)edis.getEditDistancePhrase() / divisor );
		
		return fms;
		
	}
}
